<?php

class VES_VendorsProduct_Block_Widget_Grid_Column_Renderer_VendorCompanyText
    extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Text
{
    /**
     * Renders grid column
     *
     * @param   Varien_Object $row
     * @return  string
     */
    public function render(Varien_Object $row)
    {
        $vendorId = parent::render($row);
        $collection = Mage::getModel('vendors/vendor')->getCollection()
                      ->addAttributeToSelect('company')
                      ->addFieldToFilter('vendor_id', array('eq'=>$vendorId));

        $vendorCompany = $collection->getFirstItem()->getCompany();
        $vendorCompany = '<span style="font-weight: bold;">'.$vendorCompany.'</span>';
        return $vendorCompany;
    }
}